﻿package {
	import flash.display.*;
	import flash.events.*;
	public class Flamme extends Sprite {
		var rauf:Boolean; // Hack für Animation auf/ab
		public function Flamme(a:int, b:int) {
			rauf=true;
			addEventListener(Event.ENTER_FRAME, doFlammeAnim);
			this.x=a;
			this.y=b;
		}
		private function doFlammeAnim(e:Event):void{
			if (rauf) y+=2;
			else y-=2;
			rauf=!rauf;
		}
	}
}
